<?php

//short for DIRECTORY_SEPARATOR
defined('DS') or define('DS', DIRECTORY_SEPARATOR);

//mongodb connection
defined('ZY_MONGO_CONNECTION_STRING') or define('ZY_MONGO_CONNECTION_STRING','127.0.0.1');
defined('ZY_MONGO_DBNAME') or define('ZY_MONGO_DBNAME', 'zy_question_bank');
defined('ZY_MONGO_REPLICA_SET') or define('ZY_MONGO_REPLICA_SET', false);
defined('ZY_MONGO_FSYNC_FLAG') or define('ZY_MONGO_FSYNC_FLAG', false);
defined('ZY_MONGO_SAFE_FLAG') or define('ZY_MONGO_SAFE_FLAG', false);
defined('ZY_MONGO_USE_CURSOR') or define('ZY_MONGO_USE_CURSOR', false);
defined('ZY_MONGO_PERSISTENT_CONNECTION') or define('ZY_MONGO_PERSISTENT_CONNECTION', true);

//the base path of frontend and backend
defined('ZY_COMMON_PATH') or define('ZY_COMMON_PATH', dirname(__FILE__).'/../../common');
defined('ZY_FRONTEND_PATH') or define('ZY_FRONTEND_PATH', dirname(__FILE__).'/../../frontend/protected');
defined('ZY_BACKEND_PATH') or define('ZY_BACKEND_PATH', dirname(__FILE__).'/../../backend/protected');